<input id="demo" type="file" name="Assets[video]" lay-type="video" class="layui-upload-file">
<video id="v1" width="320" height="240" controls>
    <source id="vo" src="" type="video/mp4">
</video>
<script>
    var myVideo=document.getElementById("v1");
    layui.use(['upload'], function () {
        layui.upload({
            url: '/up/video?token=<?=TOKEN?>&path=video'
            , elem: '#demo' //指定原始元素，默认直接查找class="layui-upload-file"
            , ext: 'mp4'
            , method: 'post' //上传接口的http类型
            , success: function (rs) {
                document.querySelector('#vo').src=rs.data.src;
                myVideo.load();
            }
        });
    });
</script>